import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'ion:settings-outline',
      order: 3,
      title: $t('page.system-manage.title'),
    },
    name: 'SystemManage',
    path: '/system-manage',
    children: [
      {
        name: 'LoginLog',
        path: '/login-log',
        component: () => import('#/views/system-manage/login-log/index.vue'),
        meta: {
          affixTab: false,
          icon: 'mdi:file-cog-outline',
          title: $t('page.system-manage.login-log'),
        },
      },
    ],
  },
];

export default routes;
